{__NOLAYOUT__}<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"/>
    <title>跳转提示</title>
    <link rel="stylesheet" href="__ADMIN__/lib/layui/css/layui.css" media="all">
    <script src="__ADMIN__/lib/layui/layui.js"></script>
</head>
<body>
    <input type="hidden" id="msg" value="<?php echo(strip_tags($msg));?>" />
    <input type="hidden" id="url" value="<?php echo($url);?>" />
    <input type="hidden" id="wait" value="<?php echo($wait);?>" />
    
    <script type="text/javascript">
     layui.use('layer', function(){
        $ = layui.jquery;
        var layer = layui.layer;
        var msg=$('#msg').val();
        var url=$('#url').val();
        var wait=$('#wait').val();
        /*layer.open({
            icon: <?php if($code == 1){echo 1;}else{echo 2;};?>,
            content: msg,
            offset: '200px',
            yes: function(index, layero,){
                //do something
                location.href = url;
                layer.close(index); //如果设定了yes回调，需进行手工关闭
            }
        });*/
        
        
        layer.msg(msg, {
          icon: <?php if($code == 1){echo 1;}else{echo 2;};?>,
          time: 2000 //2秒关闭（如果不配置，默认是3秒）
        }, function(){
          location.href = url;
        });
        
    });
</script>
</body>
</html>
